// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class GpsHis : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<GpsHis, MasterDbContextLocator>
    {

        public long GpsHisId { get; set; }
        public string dtuId { get; set; }
        public string dtuAlias { get; set; }
        public DateTime? dtOccur { get; set; }
        public string gps { get; set; }
        public double? lat { get; set; }
        public double? lgt { get; set; }
        public double? latBD { get; set; }
        public double? lgtBD { get; set; }
        public int? locType { get; set; }
        public string PrjCode { get; set; }
        public string PrjName { get; set; }
        public string AreaCode { get; set; }
        public string AreaName { get; set; }
        public string EXTENSION { get; set; }
        public string GENSETNUM { get; set; }
    
        public void Configure(EntityTypeBuilder<GpsHis> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                

                entityBuilder.HasIndex(e => new { e.dtuId, e.PrjCode }, "GpsHis<dtuId,PrjCode>");

              

                entityBuilder.Property(e => e.AreaCode).HasMaxLength(50);

                entityBuilder.Property(e => e.AreaName).HasMaxLength(50);

                entityBuilder.Property(e => e.EXTENSION).HasMaxLength(100);

                entityBuilder.Property(e => e.GENSETNUM).HasMaxLength(100);

                entityBuilder.Property(e => e.PrjCode)
                    .IsRequired()
                    .HasMaxLength(50);

                entityBuilder.Property(e => e.PrjName).HasMaxLength(100);

                entityBuilder.Property(e => e.dtOccur).HasColumnType("datetime");

                entityBuilder.Property(e => e.dtuAlias).HasMaxLength(200);

                entityBuilder.Property(e => e.dtuId).HasMaxLength(50);

                entityBuilder.Property(e => e.gps).HasMaxLength(200);
        }

    }
}

